/* 公共样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

body {
  background-color: #ecedf2;
  font-size: 16px;
}

/* 主容器 */

.container {
  width: 1200px;
  margin: 20px auto;
}

/* 搜索页面 */
.container .nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 120px;
}

.nav .title {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
  flex: 1;
  background-color: #5488d5;
  border-radius: 20px 0 0 20px;
}

.nav .title p {
  flex: 1;
  line-height: 60px;
  color: white;
}

.nav .types {
  flex: 7;
  background-color: white;
}

.nav .types .top {
  display: flex;
  justify-content: start;
  align-content: center;
  width: 100%;
  height: 50%;
}

.nav .types p {
  position: relative;
  line-height: 60px;
  padding: 0 35px;
  cursor: pointer;
}

.nav .types p::before {
  position: absolute;
  top: 22px;
  left: 10px;
  content: '';
  width: 15px;
  height: 15px;
  border: solid 1px black;
  border-radius: 50%;
}

/* 选中的样式 */
.nav .types .checked::after {
  position: absolute;
  top: 26px;
  left: 14px;
  content: '';
  width: 9px;
  height: 9px;
  background-color: #5488d5;
  border-radius: 50%;
}

.nav .types .bottom {
  display: flex;
  justify-content: start;
  align-content: center;
  width: 100%;
  height: 50%;
}

.nav .search {
  position: relative;
  flex: 3;
  background-color: white;
}

.nav .search input {
  width: 300px;
  height: 40px;
  margin-top: 70px;
  padding: 5px;
  border: 1px solid #666;
  outline: none;
}

.nav .search::after {
  position: absolute;
  top: 75px;
  left: 240px;
  content: '';
  width: 60px;
  height: 30px;
  border-left: 1px solid black;
  background: url(../img/search3.png) no-repeat;
  background-size: 40%;
  background-position: 15px 5px;
}

/* 英雄列表 */
.hero {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  justify-items: center;
  text-align: center;
  font-size: 14px;
  row-gap: 20px;
  color: #333;
  margin-top: 20px;
}

.hero li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: black;
  text-decoration: none;
}

.hero li img {
  width: 77px;
  height: 77px;
  border: 2px solid #5488d5;
  border-radius: 15px 0;
  margin-bottom: 5px;
}

/*  */
.red {
  color: red;
}
